------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--[[

    胡桃的 检查界面的 相关参数 和文本。

    为了方便其他MOD作者hook 进来修改，进行对应的模块剥离

]]--
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--- 
    TUNING.HUTAO_INSPECT_HUD_FNS = {}
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--- 语言
    local LANGUAGE = "ch"
    if type(TUNING["hutao.Language"]) == "function" then
        LANGUAGE = TUNING["hutao.Language"]()
    elseif type(TUNING["hutao.Language"]) == "string" then
        LANGUAGE = TUNING["hutao.Language"]
    end
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--- api
    local function get_image(image_name)
        local temp_data = TUNING.HUTAO_INSPECT_HUD_DATA[image_name]
        if temp_data then
            return temp_data.atlas,temp_data.image
        end
        print("get_image error",image_name)
        return nil,nil
    end
    TUNING.HUTAO_INSPECT_HUD_FNS.get_image = get_image
    local function get_info(index)
        local temp_data = TUNING.HUTAO_INSPECT_HUD_DATA.all_info[index]
        if temp_data and temp_data[LANGUAGE] then
            local data = temp_data[LANGUAGE]
            local pt = data.pt or Vector3(0,0,0)
            local size = data.size
            return pt,data.str,size
        end
        return nil,nil
    end
    TUNING.HUTAO_INSPECT_HUD_FNS.get_info = get_info
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--- 数据表
    local BASE_ATLAS = "images/widgets/hutao_inspect_hud.xml"
    local BUFF_ICON_ATLAS = "images/widgets/hutao_talent_buff_icon.xml"
    TUNING.HUTAO_INSPECT_HUD_DATA = {
        ----------------------------------------------------------------------------------------------------------
        -- 页面选择-角色
            button_character = {
                atlas = BASE_ATLAS,
                image = LANGUAGE == "ch" and "button_character_ch.tex" or "button_character_en.tex",
            },
            button_character_unselected = {
                atlas = BASE_ATLAS,
                image = "button_character_unselected.tex",
            },
        ----------------------------------------------------------------------------------------------------------
        -- 页面选择-技能
            button_skill = {
                atlas = BASE_ATLAS,
                image = LANGUAGE == "ch" and "button_skill_ch.tex" or "button_skill_en.tex",
            },
            button_skill_unselected = {
                atlas = BASE_ATLAS,
                image = "button_skill_unselected.tex",
            },
        ----------------------------------------------------------------------------------------------------------
        -- 页面选择-突破
            button_ascension = {
                atlas = BASE_ATLAS,
                image = LANGUAGE == "ch" and "button_ascension_ch.tex" or "button_ascension.tex",
            },
            button_ascension_unselected = {
                atlas = BASE_ATLAS,
                image = "button_ascension_unselected.tex",
            },
        ----------------------------------------------------------------------------------------------------------
        -- page_character_level_box
            page_character_level_box = {
                atlas = BASE_ATLAS,
                image = LANGUAGE == "ch" and "page_character_level_box_ch.tex" or "page_character_level_box_en.tex",
            },
        ----------------------------------------------------------------------------------------------------------
        -- page_skill_tactic_list
            page_skill_tactic_list = {
                atlas = BASE_ATLAS,
                image = LANGUAGE == "ch" and "page_skill_tactic_list_ch.tex" or "page_skill_tactic_list_en.tex",
            },
        ----------------------------------------------------------------------------------------------------------
        -- page_ascension_button_help 
            page_ascension_button_help = {
                atlas = BASE_ATLAS,
                image = LANGUAGE == "ch" and "page_ascension_button_help_ch.tex" or "page_ascension_button_help_en.tex",
            },
        ----------------------------------------------------------------------------------------------------------
        -- page_ascension_button_ascension 
            page_ascension_button_ascension = {
                atlas = BASE_ATLAS,
                image = LANGUAGE == "ch" and "page_ascension_button_ascension_ch.tex" or "page_ascension_button_ascension_en.tex",
            },
        ----------------------------------------------------------------------------------------------------------
        -- page_ascension_ex_box_button_yes_ch 
            page_ascension_ex_box_button_yes = {
                atlas = BASE_ATLAS,
                image = LANGUAGE == "ch" and "page_ascension_ex_box_button_yes_ch.tex" or "page_ascension_ex_box_button_yes_en.tex",
            },
        ----------------------------------------------------------------------------------------------------------
        -- 所有的文本统一在这里面
            --[[
                pt 为偏移坐标
                str 为文本内容
                size 为字体大小
            ]]
            all_info = {
                --------------------------------------------------------------
                ---- 高等元素论
                    ["advanced_element_theory"] = {                            
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 35,          --- 字体大小
                            str = [[
                                高级元素理论 01
                                高级元素理论 02
                                高级元素理论 03
                                高级元素理论 04
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 35,          --- 字体大小
                            str = [[
                                advanced_element_theory 01
                                advanced_element_theory 02
                                advanced_element_theory 03
                                advanced_element_theory 04
                            ]]
                        },
                    },
                --------------------------------------------------------------
                ---- 神游界外
                    ["beyond_the_world"] = {                            
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 35,          --- 字体大小
                            str = [[
                                神游界外 01
                                神游界外 02
                                神游界外 03
                                神游界外 04
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 35,          --- 字体大小
                            str = [[
                                beyond_the_world 01
                                beyond_the_world 02
                                beyond_the_world 03
                                beyond_the_world 04
                            ]]
                        },
                    },
                --------------------------------------------------------------
                ---- 多多益善
                    ["the_more_the_better"] = {                            
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 35,          --- 字体大小
                            str = [[
                                多多益善 01
                                多多益善 02
                                多多益善 03
                                多多益善 04
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 35,          --- 字体大小
                            str = [[
                                the_more_the_better 01
                                the_more_the_better 02
                                the_more_the_better 03
                                the_more_the_better 04
                            ]]
                        },
                    },
                --------------------------------------------------------------
                ---- 蝶隐之时
                    ["time_of_butterfly_concealment"] = {                            
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 35,          --- 字体大小
                            str = [[
                                蝶隐之时 01
                                蝶隐之时 02
                                蝶隐之时 03
                                蝶隐之时 04
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 35,          --- 字体大小
                            str = [[
                                time_of_butterfly_concealment 01
                                time_of_butterfly_concealment 02
                                time_of_butterfly_concealment 03
                                time_of_butterfly_concealment 04
                            ]]
                        },
                    },
                --------------------------------------------------------------
                ---- 血之灶火
                    ["blood_hearth_fire"] = {                            
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 35,          --- 字体大小
                            str = [[
                                血之灶火 01
                                血之灶火 02
                                血之灶火 03
                                血之灶火 04
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 35,          --- 字体大小
                            str = [[
                                blood_hearth_fire 01
                                blood_hearth_fire 02
                                blood_hearth_fire 03
                                blood_hearth_fire 04
                            ]]
                        },
                    },
                --------------------------------------------------------------
                ---- 花瓣大鬼
                    ["flower_ghost"] = {                            
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 35,          --- 字体大小
                            str = [[
                                花瓣大鬼 01
                                花瓣大鬼 02
                                花瓣大鬼 03
                                花瓣大鬼 04
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 35,          --- 字体大小
                            str = [[
                                flower_ghost 01
                                flower_ghost 02
                                flower_ghost 03
                                flower_ghost 04
                            ]]
                        },
                    },
                --------------------------------------------------------------
                ---- 出招表
                    ["tactic_list"] = {                            
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 35,          --- 字体大小
                            str = [[
                                出招表 01
                                出招表 02
                                出招表 03
                                出招表 04
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 35,          --- 字体大小
                            str = [[
                                tactic_list 01
                                tactic_list 02
                                tactic_list 03
                                tactic_list 04
                            ]]
                        },
                    },
                --------------------------------------------------------------
                ---- 突破界面帮助按钮
                    ["page_ascension_button_help"] = {                            
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 35,          --- 字体大小
                            str = [[
                                突破界面帮助按钮 01
                                突破界面帮助按钮 02
                                突破界面帮助按钮 03
                                突破界面帮助按钮 04
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 35,          --- 字体大小
                            str = [[
                                page_ascension_button_help 01
                                page_ascension_button_help 02
                                page_ascension_button_help 03
                                page_ascension_button_help 04
                            ]]
                        },
                    },
                --------------------------------------------------------------
                ---- 突破界面 警告窗口
                    ["level_up_break_warning_info"] = {                            
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 35,          --- 字体大小
                            str = [[
                                突破界面 警告窗口 01
                                突破界面 警告窗口 02
                                突破界面 警告窗口 03
                                突破界面 警告窗口 04
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 35,          --- 字体大小
                            str = [[
                                level_up_break_warning_info 01
                                level_up_break_warning_info 02
                                level_up_break_warning_info 03
                                level_up_break_warning_info 04
                            ]]
                        },
                    },
                --------------------------------------------------------------
                ---- 突破信息
                    ["page_ascension_memorial_tablet_1"] = {
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 80,          --- 字体大小
                            str = [[
                                头七
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 80,          --- 字体大小
                            str = [[
                                头七
                            ]]
                        },
                    },
                    ["page_ascension_memorial_tablet_2"] = {
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 80,          --- 字体大小
                            str = [[
                                二七
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 80,          --- 字体大小
                            str = [[
                                二七
                            ]]
                        },
                    },
                    ["page_ascension_memorial_tablet_3"] = {
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 80,          --- 字体大小
                            str = [[
                                三七
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 80,          --- 字体大小
                            str = [[
                                三七
                            ]]
                        },
                    },
                    ["page_ascension_memorial_tablet_4"] = {
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 80,          --- 字体大小
                            str = [[
                                四七
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 80,          --- 字体大小
                            str = [[
                                四七
                            ]]
                        },
                    },
                    ["page_ascension_memorial_tablet_5"] = {
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 80,          --- 字体大小
                            str = [[
                                五七
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 80,          --- 字体大小
                            str = [[
                                五七
                            ]]
                        },
                    },
                    ["page_ascension_memorial_tablet_6"] = {
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 80,          --- 字体大小
                            str = [[
                                6七
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 80,          --- 字体大小
                            str = [[
                                6七
                            ]]
                        },
                    },
                    ["page_ascension_memorial_tablet_7"] = {
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 80,          --- 字体大小
                            str = [[
                                断七
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 80,          --- 字体大小
                            str = [[
                                断七
                            ]]
                        },
                    },
                --------------------------------------------------------------
                --- buff info 彼岸蝶舞
                    ["hutao_com_butterfly_s_embrace"] = {
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 45,          --- 字体大小
                            str = [[
                                彼岸蝶舞
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 45,          --- 字体大小
                            str = [[
                                彼岸蝶舞
                            ]]
                        },
                    },
                --------------------------------------------------------------
                --- buff info buff-肉感（梅菜扣肉）
                    ["hutao_debuff_braised_pork_belly_with_preserved_vegetable"] = {
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 45,          --- 字体大小
                            str = [[
                                buff-肉感（梅菜扣肉）
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 45,          --- 字体大小
                            str = [[
                                buff-肉感（梅菜扣肉）
                            ]]
                        },
                    },
                --------------------------------------------------------------
                --- buff info buff-通窍（幽幽大行军）
                    ["hutao_debuff_ghostly_march"] = {
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 45,          --- 字体大小
                            str = [[
                                buff-通窍（幽幽大行军）
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 45,          --- 字体大小
                            str = [[
                                buff-通窍（幽幽大行军）
                            ]]
                        },
                    },
                --------------------------------------------------------------
                --- buff info buff-酗酒（梅花酿）
                    ["hutao_debuff_plum_blossom_wine"] = {
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 45,          --- 字体大小
                            str = [[
                                buff-酗酒（梅花酿）
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 45,          --- 字体大小
                            str = [[
                                buff-酗酒（梅花酿）
                            ]]
                        },
                    },
                --------------------------------------------------------------
                --- buff info debuff-不朽尸王
                    ["hutao_debuff_undying_lich"] = {
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 45,          --- 字体大小
                            str = [[
                                debuff-不朽尸王
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 45,          --- 字体大小
                            str = [[
                                debuff-不朽尸王
                            ]]
                        },
                    },
                --------------------------------------------------------------
                --- buff info debuff-信
                    ["hutao_debuff_undying_lich_after_wakeup"] = {
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 45,          --- 字体大小
                            str = [[
                                debuff-信
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 45,          --- 字体大小
                            str = [[
                                debuff-信
                            ]]
                        },
                    },
                --------------------------------------------------------------
                --- buff info buff-蝶隐之时
                    ["hutao_debuff_vanishing_butterfly_moment"] = {
                        ["ch"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 45,          --- 字体大小
                            str = [[
                                buff-蝶隐之时
                            ]]
                        },
                        ["en"] = {
                            pt = Vector3(0,0,0), -- 坐标
                            size = 45,          --- 字体大小
                            str = [[
                                buff-蝶隐之时
                            ]]
                        },
                    },
                --------------------------------------------------------------
            }
        ----------------------------------------------------------------------------------------------------------
    }
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---
    
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------